import java.awt.Color;


public class GamePiece {
	
	public int x;
	public int y;
	public Color color;	
	public Player p;
	
	
	
	public GamePiece(int x, int y, Color color) {
		super();
		this.x = x;
		this.y = y;
		this.color = color;
	}
	
	public GamePiece() {
		super();
		p=new Player();
		color=p.getColor();
	}



	public Color getColor() {
		return color;
	}
	public void setColor(Color color) {
		this.color = color;
	}
	public Player getP() {
		return p;
	}
	public void setP(Player p) {
		this.p = p;
	}
	public int getX() {
		return x;
	}
	public void setX(int x) {
		this.x = x;
	}
	public int getY() {
		return y;
	}
	public void setY(int y) {
		this.y = y;
	}

}
